package index.oop.lesson;

public class newCat {
    public static void main(String[] args) {
       //查看书册寻找对象进行编程
        Cat Doraemon =new Cat();
      Doraemon.setColor("blue");
      System.out.println( Doraemon.getColor());
      String str="doraemon";
      //长度  length()
        // System.out.println(str.length());
       //相等  equals()  -> boolean  true false
        String ybdxFriend="doraemon";
        System.out.println(ybdxFriend.equals(str));
        //是否字符串是空值 isEmpty()
        String box="";
        System.out.println(box.isEmpty());

    }
}
